// 导入
const express = require('express')
const {getAllGoods,goodsDetail} = require('../controller/goods')
// 创建路由对象
const router = express.Router()

// 处理获取商品信息的请求
router.get('/getAllGoods/:page/:size', getAllGoods)
router.get('/goodsDetail/:id', goodsDetail)

// 导出路由对象
module.exports = router